import { createApp } from 'vue'
import App from './App.vue'
import {createRouter, createWebHistory} from 'vue-router'
// 1. 引入你需要的组件
import Vant  from 'vant';
import routes from "./config/Route.ts";
import 'vant/lib/index.css';
import "./style.css"
// 在全局引用后再次引入样式，保证toast主键样式优先级最高正常加载
import "vant/es/toast/style";

let app = createApp(App);
// 3. 注册你需要的组件
// 全量引入
app.use(Vant);

const router = createRouter({
    history:  createWebHistory(),
    routes,
})
app.use(router);

app.mount('#app');


